{% extends 'django_ledger/layouts/content_layout_1.html' %}
{% load i18n %}
{% load static %}
{% load django_ledger %}

{% block view_content %}
    <div class="container">
        <div class="columns is-multiline">
            <div class="column is-12">
                {% include 'django_ledger/closing_entry/includes/card_closing_entry.html' with closing_entry_model=object entity_slug=view.kwargs.entity_slug %}
            </div>
            <div class="column is-12 has-text-centered">
                <a href="{{ closing_entry_model.get_list_url }}"
                   class="button is-info mt-2">
                    {% trans 'Back to Closing Entry List' %}
                </a>
            </div>
        </div>
        <div class="columns">
            <div class=" column is-12">
                {% include 'django_ledger/includes/card_markdown.html' with style='card_1'  title='Closing Entry Notes' notes_html=closing_entry_model.notes_html %}
            </div>
        </div>
        <div class="columns">
            <div class="column">
                <div class="card">
                    <div class="card-header">
                        <div class="card-header-title">
                            <h1 class="is-size-3 has-text-weight-light">{% trans 'Closing Entry Transactions' %}</h1>
                        </div>
                    </div>
                    <div class="card-content">
                        {% closing_entry_txs_table closing_entry_txs_qs %}
                    </div>

                </div>
            </div>
        </div>

    </div>
{% endblock %}